package com.ruoyi.common.core.domain;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

@Data
public class PageQuery {
    private Integer pageNum = 1;
    private Integer pageSize = 10;

    public PageQuery() {
    }

    public <T> IPage<T> page() {
        return null != this.pageNum && null != this.pageSize ? new Page(this.pageNum, this.pageSize) : new Page();
    }
}
